package com.facebook.games.fa.controller
{
	import com.facebook.games.fa.events.GameEvent;
	import com.facebook.games.fa.view.EndGame;
	
	import flash.events.EventDispatcher;
	
	/**
	 * Controlador da EndGame view
	 * @author Diego Maehler <dmaehler@gmail.com>
	 */ 
	public class EndGameController extends EventDispatcher
	{
		
		/**
		 * EndGame view
		 */
		public var view : EndGame;
		
		/**
		 * Volta para a tela inicial
		 */
		public function navigateToHome () : void
		{
			
		}
		
		/**
		 * Inicia um novo jogo
		 */
		public function newGame () : void
		{
			this.view.dispatchEvent(new GameEvent(GameEvent.NEW_GAME));
		}
		
		/**
		 * Reinicia o jogo
		 */
		public function restartGame () : void
		{
			this.view.dispatchEvent(new GameEvent(GameEvent.RESTART_GAME));
		}
		
	}
}